package com.example.client_anna.util.tool;

import com.example.client_anna.network.okhttp3.RequestUrl;
import com.example.client_anna.util.entity.Home_Image;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cy
 * @email 272884043@qq.com
 * @date 2021/10/19
 */
public class ImageStaticData {

    private static final String[] image = {
            new String(RequestUrl.getUrl()+"images/explore/v2-b0320617e766f2f018200d8f99c50541_720w.jpg"),
            new String(RequestUrl.getUrl()+"images/explore/v2-db428e3efd212a01699065807f781278_720w.jpg"),
            new String(RequestUrl.getUrl()+"images/explore/v2-6f172dba3d4baf1dff001ac9ddd63c4b_720w.jpg"),
    };

    public static List<String> getImageList(){
        List<String> list = new ArrayList<>();
        for (int i=0;i<image.length;i++){
            list.add(image[i]);
        }
        return list;
    }

    private static final Home_Image[] images = {
            new Home_Image(RequestUrl.getUrl()+"images/home/static/home_delicacies.png","美食"),
            new Home_Image(RequestUrl.getUrl()+"images/home/static/home_dessert.png","甜点饮品"),
            new Home_Image(RequestUrl.getUrl()+"images/home/static/home_shop.png","超市便利"),
            new Home_Image(RequestUrl.getUrl()+"images/home/static/home_fruit.png","蔬菜水果"),
            new Home_Image(RequestUrl.getUrl()+"images/home/static/home_medical.png","买药"),
    };

    public static List<Home_Image> getFirstData(){
        List<Home_Image> home_images = new ArrayList<>();
        home_images.clear();
        for (int i=0;i<images.length;i++){
            home_images.add(images[i]);
        }
        return home_images;
    }

    private static final Home_Image[] images_second = {
            new Home_Image(RequestUrl.getUrl()+"images/home/static/home_hamburger.png","汉堡披萨"),
            new Home_Image(RequestUrl.getUrl()+"images/home/static/home_flower.png","浪漫鲜花"),
            new Home_Image(RequestUrl.getUrl()+"images/home/static/home_coupon.png","天天神券"),
            new Home_Image(RequestUrl.getUrl()+"images/home/static/home_allowance.png","津贴联盟"),
            new Home_Image(RequestUrl.getUrl()+"images/home/static/home_all.png","全部分类"),
    };

    public static List<Home_Image> getSecondData(){
        List<Home_Image> home_images = new ArrayList<>();
        home_images.clear();
        for (int i=0;i<images_second.length;i++){
            home_images.add(images_second[i]);
        }
        return home_images;
    }

}
